package cn.liuhuan1.api;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @Auther: liuhuan
 * @Date: 2021/1/21 - 01 - 21 - 23:43
 * @Description:
 * @version: 1.0
 */
@FeignClient(value = "SERVICE-REDIS")
public interface CacluFeignClient {
    // 这里定义了类似于SpringMVC用法的方法，就可以进行RESTful的调用了

    @RequestMapping(value = "/caclulate", method = RequestMethod.GET)
    public String caclulate();

}
